package com.ruoyi.app.controller.account;

import com.ruoyi.app.business.account.LaborAccountBusiness;
import com.ruoyi.app.domain.account.AccountWithdraw;
import com.ruoyi.common.core.web.domain.APIResult;
import javax.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 员工账户管理
 *
 * @author Zane
 * @since 2025-09-27
 */
@RestController
@RequestMapping("/account/labor")
public class LaborAccountController {

  @Resource
  private LaborAccountBusiness laborAccountBusiness;

  /**
   * 提现
   */
  @PostMapping("withdraw")
  public APIResult<Void> withdraw(@Validated @RequestBody AccountWithdraw  withdraw) {
    laborAccountBusiness.withdraw(withdraw);
    return APIResult.success();
  }


}
